package com.zhangxi.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhangxi
 * 返回的员工登录信息
 * @create 2024-04-17 20:15
 */

@Data // 是@ToString, @EqualsAndHashCode, @Getter, @Setter和@NoArgsConstructor的结合
@Builder //让实体类使用构造者模式创建对象
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "员工登录返回的数据格式")
public class EmployeeLoginVo {
    @ApiModelProperty("主键值")
    private Long id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("jwt令牌")
    private String token;
}
